database code style