add warnings and db creation