new modules, some code for DB interactions and IP detect