add struct db