base instert to db