add create and delete database function