Changed formatting of database code