clean gems and db