moved database and require to init