fix replication task
fix a problem with db creation