add constructors and sql statement