If you want to generate stored procedures to access your relational database system, you should look at CodeFluent Entities which is free for personal and see if it can meet your needs.
This tools allows you to generate tables, stored procedures and views with relative ease
and it supports Microsoft SQL Server, Microsoft SQL Azure, Oracle, MySQL and PostgreSQL.