added insert method in DatabaseManager