     execute "INSERT INTO " + table + " (" + fields + ") VALUES (" + values + ")"
 
   _throwError = (transaction, error) ->
-    throw new Error(ERROR.DATABASE_TRANSACTION + error.code + ": " + error.message + " \n Executed query: " + transaction.executedQuery)
+    throw new Error("[ERROR] Device.DB " + error.code + ": " + error.message + " \n Executed query: " + transaction.executedQuery)
 
   init: init
   select: select

###

Device.DB = do(dvc = Device) ->
  ERROR = lng.Constants.ERROR
  CONFIG =
    name: "lungo_db"
    version: "1.0"
    size: 65536
    schema: []

  db = null

  ###

  @method init
  @param {object} Configuration for the Database
  ###
  init = (name, version, size, schema) ->
    db = openDatabase name, version, name, size
    if db
      schema_len = schema.length
      return unless schema_len
      i = 0
      while i < schema_len
        current = schema[i]
        _regenerateTable current
        _createTable current.name, current.fields
        i++

    else
      throw new Error "[ERROR] Device.DB: DB unnecesible"


  ###
