database code cleanup
database UI styling