Todo: Fix bug where select won't insert to db.