removed database code