Removed database code