added simple database operations

Added SQL support