added missing encoding
added missing db prefix