fixing empty database

adding database sql to source code