remake db schema and add security manager class