database: crud methods, random id methods