Slight edits to database.php

Need to use stored procedures anyway