Trying to use command pattern for database actions