init for databases