implemented portion DB and tests
split drop and create database statements to start even if there is no database yet