database integration

Added an interface for database integration...not built up fully
however.