clinical system automatic database creation