create db automatically