Changed model and database from string -> text