Simplify the database storing prcess