Implement mechanic to update database