first database code, some commands